LassoScript Utility
Basics Browse Detail

[String->ToUpper]

Tag Link [String->ToUpper] Category String
Type Member Source Available Yes
Support Preferred Version 7.0
Change Unchanged Data Source Any
Output Type None Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0

Description

[String->ToUpper] modifies the base string in-place by converting a specified character in the string to uppercase. Requires a single parameter, which indicates the position of the character to change.

Syntax

[Variable: 'myString' = 'String Value']
[$myString->(ToUpper: Integer)]
[Variable: 'myString']

<?LassoScript
Variable: 'myString' = 'String Value';
$myString->(ToUpper: Integer)]
Output: $myString;
?>

Parameters

Required Parameters
Integer The position of the character to change. The first letter in the base string is 1.

Examples

To change the case of a string to upper case:

Use the [String->ToUpper] tag. The following example outputs a sample string converted to upper case.

[Variable: 'myString' = 'a quick brown fox']
[$myString->(ToUpper: 1)]
[Output: $myString]

A quick brown fox

Related Tags

Category Tags